<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>lua-nbt: nbt Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">lua-nbt
   </div>
   <div id="projectbrief">Named Binary Tag library for Lua</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">nbt Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnbt_1_1_tag.html">Tag</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ac96039b5f6f53c3e5f64be0807d772f2"><td class="memItemLeft" align="right" valign="top">typedef int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a></td></tr>
<tr class="separator:ac96039b5f6f53c3e5f64be0807d772f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ec0d30c4bfec8a96b422179b9c1640c"><td class="memItemLeft" align="right" valign="top">typedef double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a1ec0d30c4bfec8a96b422179b9c1640c">number</a></td></tr>
<tr class="separator:a1ec0d30c4bfec8a96b422179b9c1640c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace7731cf44f1f0d059794e786f2d42b8"><td class="memItemLeft" align="right" valign="top">typedef char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a></td></tr>
<tr class="separator:ace7731cf44f1f0d059794e786f2d42b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f6f02afeb450fede6255f602157bb2a"><td class="memItemLeft" align="right" valign="top">typedef void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a></td></tr>
<tr class="separator:a2f6f02afeb450fede6255f602157bb2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19905ad50c82e72526db0057144f6470"><td class="memItemLeft" align="right" valign="top">typedef ptrdiff_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a19905ad50c82e72526db0057144f6470">any</a></td></tr>
<tr class="separator:a19905ad50c82e72526db0057144f6470"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a5dedf82c90665ae9e2a1d7d5240847"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0">nbt::TagType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a4a5dedf82c90665ae9e2a1d7d5240847">TagType</a></td></tr>
<tr class="separator:a4a5dedf82c90665ae9e2a1d7d5240847"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e421d398e2294343c91bdffc2c7b9b0"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171ec">nbt::PreserveMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a0e421d398e2294343c91bdffc2c7b9b0">PreserveMode</a></td></tr>
<tr class="separator:a0e421d398e2294343c91bdffc2c7b9b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaaadd16998c778e2f199982f78a7cdfc"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#aaaadd16998c778e2f199982f78a7cdfc">inputReader</a>) (<a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a> minread)</td></tr>
<tr class="separator:aaaadd16998c778e2f199982f78a7cdfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:af736ee28323266257ce0e5d56e2669e0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0">TagType</a> { <br />
&#160;&#160;<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0ac2c5d6760fef556f9c396225750075c8">TAG_END</a>, 
<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a190f7f37f387f7215246055e5fbd656f">TAG_BYTE</a>, 
<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0abe4ee5e13fc7f3f35ba3c2d544b9fa8d">TAG_SHORT</a>, 
<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a367f9352d0b2e8621bda49127318e086">TAG_INT</a>, 
<br />
&#160;&#160;<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0ada95f5b19bd2e9e17160cc9a1477b7d8">TAG_LONG</a>, 
<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a81548f1cdd75d6a5500533ac73773018">TAG_FLOAT</a>, 
<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0af3cb3a0b381059ae88ecc0139dd986d5">TAG_DOUBLE</a>, 
<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0af86224107e7c82312447a2c56fb05a6f">TAG_BYTE_ARRAY</a>, 
<br />
&#160;&#160;<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a655593edca89bc6ed0a2ac5fc33c50c0">TAG_STRING</a>, 
<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0af97f4039d10b5baa39af2a666ff05486">TAG_LIST</a>, 
<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0ac3b2486402281a430d49b1a459196c00">TAG_COMPOUND</a>, 
<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0ad9e8097789fbbb0864f7ab962adc407d">TAG_INT_ARRAY</a>, 
<br />
&#160;&#160;<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a11f095453a5c229c777a885eb4d11f88">TAG_LONG_ARRAY</a>
<br />
 }</td></tr>
<tr class="separator:af736ee28323266257ce0e5d56e2669e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a092035b9920a343f97622e7a5a6171ec"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171ec">PreserveMode</a> { <a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171eca4b898e1ce4746a37e51dc1d11ae55af1">tag</a>, 
<a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171eca70d03a65aaeba76abaa9054bb2080ac5">plain</a>
 }</td></tr>
<tr class="separator:a092035b9920a343f97622e7a5a6171ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a2d0688c4f34e81f1a92e7f34606812b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a2d0688c4f34e81f1a92e7f34606812b4">newByte</a> (<a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:a2d0688c4f34e81f1a92e7f34606812b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1b3c26b692676be463163af7d14a12d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#ac1b3c26b692676be463163af7d14a12d">newShort</a> (<a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:ac1b3c26b692676be463163af7d14a12d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a9207104ad78f5e0e6913af5ba7ace8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a8a9207104ad78f5e0e6913af5ba7ace8">newInt</a> (<a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:a8a9207104ad78f5e0e6913af5ba7ace8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf036100365ed424f8e699ca2e96a008"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#abf036100365ed424f8e699ca2e96a008">newLong</a> (<a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:abf036100365ed424f8e699ca2e96a008"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3da631c31cbc6f5e23ce07a4cf7a692"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#aa3da631c31cbc6f5e23ce07a4cf7a692">newFloat</a> (<a class="el" href="namespacenbt.html#a1ec0d30c4bfec8a96b422179b9c1640c">number</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:aa3da631c31cbc6f5e23ce07a4cf7a692"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfcd33113345462b4bf460b2f036044c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#adfcd33113345462b4bf460b2f036044c">newDouble</a> (<a class="el" href="namespacenbt.html#a1ec0d30c4bfec8a96b422179b9c1640c">number</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:adfcd33113345462b4bf460b2f036044c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a632231a596f2297ab97a6d945683d41f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a632231a596f2297ab97a6d945683d41f">newByteArray</a> (<a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:a632231a596f2297ab97a6d945683d41f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9129cea2c8fd16c1818cd4a22d5e4df6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a9129cea2c8fd16c1818cd4a22d5e4df6">newString</a> (<a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:a9129cea2c8fd16c1818cd4a22d5e4df6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ff381e9fea7390b315e64fd5e677690"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a1ff381e9fea7390b315e64fd5e677690">newList</a> (<a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0">TagType</a> typeID, <a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:a1ff381e9fea7390b315e64fd5e677690"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48aa5ecaea6688662019242d156aa4c9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a48aa5ecaea6688662019242d156aa4c9">newCompound</a> (<a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:a48aa5ecaea6688662019242d156aa4c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd46fcce4a1db7e58f45c8d1ea9575c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#acd46fcce4a1db7e58f45c8d1ea9575c1">newIntArray</a> (<a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:acd46fcce4a1db7e58f45c8d1ea9575c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3f9a30f4384530243111d880604eb46"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#aa3f9a30f4384530243111d880604eb46">newLongArray</a> (<a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a> value, <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> name=&quot;&quot;)</td></tr>
<tr class="separator:aa3f9a30f4384530243111d880604eb46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d90369d511b77a9b30f137cc9f34eda"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a2d90369d511b77a9b30f137cc9f34eda">decode</a> (<a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a> input, <a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171ec">PreserveMode</a> preservemode=PreserveMode::tag)</td></tr>
<tr class="separator:a2d90369d511b77a9b30f137cc9f34eda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46b11750c993e65b05001687ca8a7941"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnbt_1_1_tag.html">Tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenbt.html#a46b11750c993e65b05001687ca8a7941">decode</a> (<a class="el" href="namespacenbt.html#aaaadd16998c778e2f199982f78a7cdfc">inputReader</a> reader, <a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171ec">PreserveMode</a> preservemode=PreserveMode::tag)</td></tr>
<tr class="separator:a46b11750c993e65b05001687ca8a7941"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="a19905ad50c82e72526db0057144f6470"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19905ad50c82e72526db0057144f6470">&#9670;&nbsp;</a></span>any</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef ptrdiff_t <a class="el" href="namespacenbt.html#a19905ad50c82e72526db0057144f6470">nbt::any</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Datatype that indicate any Lua type but not nil </p>

</div>
</div>
<a id="aaaadd16998c778e2f199982f78a7cdfc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaaadd16998c778e2f199982f78a7cdfc">&#9670;&nbsp;</a></span>inputReader</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>(* nbt::inputReader) (<a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a> minread)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Input reader function signature.</p>
<p>When function is supplied to nbt::decode(inputReader, string) these things must be considered:</p><ul>
<li>Returns uncompressed data.</li>
<li>Returns at least <code>minread</code> length of binary-string. If it returns less than that, the decoding function will fail. Function is allowed to return size bigger than <code>minread</code>.</li>
<li>If error occured, return <code>nil</code> AND the reason in string (2 values).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">minread</td><td>Minimum string that is needed by the decoder. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Uncompressed binary-string of the next NBT data needed. </dd></dl>

</div>
</div>
<a id="ac96039b5f6f53c3e5f64be0807d772f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac96039b5f6f53c3e5f64be0807d772f2">&#9670;&nbsp;</a></span>integer</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int64_t <a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">nbt::integer</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Number datatype that indicates any floating point will be truncated </p>

</div>
</div>
<a id="a1ec0d30c4bfec8a96b422179b9c1640c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ec0d30c4bfec8a96b422179b9c1640c">&#9670;&nbsp;</a></span>number</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef double <a class="el" href="namespacenbt.html#a1ec0d30c4bfec8a96b422179b9c1640c">nbt::number</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Number datatype that preserve floating point </p>

</div>
</div>
<a id="a0e421d398e2294343c91bdffc2c7b9b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e421d398e2294343c91bdffc2c7b9b0">&#9670;&nbsp;</a></span>PreserveMode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171ec">nbt::PreserveMode</a>  <a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171ec">nbt::PreserveMode</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Valid preserve mode for <a class="el" href="namespacenbt.html#a2d90369d511b77a9b30f137cc9f34eda">decode()</a>. The enum value is string. </p>

</div>
</div>
<a id="ace7731cf44f1f0d059794e786f2d42b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace7731cf44f1f0d059794e786f2d42b8">&#9670;&nbsp;</a></span>string</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef char* <a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">nbt::string</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Datatype that indicate Lua string </p>

</div>
</div>
<a id="a2f6f02afeb450fede6255f602157bb2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f6f02afeb450fede6255f602157bb2a">&#9670;&nbsp;</a></span>table</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void* <a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">nbt::table</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Datatype that indicate Lua table </p>

</div>
</div>
<a id="a4a5dedf82c90665ae9e2a1d7d5240847"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a5dedf82c90665ae9e2a1d7d5240847">&#9670;&nbsp;</a></span>TagType</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0">nbt::TagType</a>  <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0">nbt::TagType</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>These enum values are exposed directly in <code>nbt</code> table. The enum value is number </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a092035b9920a343f97622e7a5a6171ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a092035b9920a343f97622e7a5a6171ec">&#9670;&nbsp;</a></span>PreserveMode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171ec">nbt::PreserveMode</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Valid preserve mode for <a class="el" href="namespacenbt.html#a2d90369d511b77a9b30f137cc9f34eda">decode()</a>. The enum value is string. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a092035b9920a343f97622e7a5a6171eca4b898e1ce4746a37e51dc1d11ae55af1"></a>tag&#160;</td><td class="fielddoc"><p><code>"tag"</code> - All value in a table is type of <a class="el" href="classnbt_1_1_tag.html">Tag</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="a092035b9920a343f97622e7a5a6171eca70d03a65aaeba76abaa9054bb2080ac5"></a>plain&#160;</td><td class="fielddoc"><p><code>"plain"</code> - All value in a table is plain Lua type. </p>
</td></tr>
</table>

</div>
</div>
<a id="af736ee28323266257ce0e5d56e2669e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af736ee28323266257ce0e5d56e2669e0">&#9670;&nbsp;</a></span>TagType</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0">nbt::TagType</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>These enum values are exposed directly in <code>nbt</code> table. The enum value is number </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0ac2c5d6760fef556f9c396225750075c8"></a>TAG_END&#160;</td><td class="fielddoc"><p>End of TAG_COMPOUND mark. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0a190f7f37f387f7215246055e5fbd656f"></a>TAG_BYTE&#160;</td><td class="fielddoc"><p>Signed byte/int8_t value tag. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0abe4ee5e13fc7f3f35ba3c2d544b9fa8d"></a>TAG_SHORT&#160;</td><td class="fielddoc"><p>Signed short/int16_t value tag. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0a367f9352d0b2e8621bda49127318e086"></a>TAG_INT&#160;</td><td class="fielddoc"><p>Signed integer/int32_t value tag. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0ada95f5b19bd2e9e17160cc9a1477b7d8"></a>TAG_LONG&#160;</td><td class="fielddoc"><p>Signed long integer/int64_t value tag. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0a81548f1cdd75d6a5500533ac73773018"></a>TAG_FLOAT&#160;</td><td class="fielddoc"><p>Single precision floating-point value tag. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0af3cb3a0b381059ae88ecc0139dd986d5"></a>TAG_DOUBLE&#160;</td><td class="fielddoc"><p>Double precision floating-point value tag. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0af86224107e7c82312447a2c56fb05a6f"></a>TAG_BYTE_ARRAY&#160;</td><td class="fielddoc"><p>Array of signed byte/int8_t[] tags. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0a655593edca89bc6ed0a2ac5fc33c50c0"></a>TAG_STRING&#160;</td><td class="fielddoc"><p>UTF-8 string value tag. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0af97f4039d10b5baa39af2a666ff05486"></a>TAG_LIST&#160;</td><td class="fielddoc"><p>Array of specific tags. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0ac3b2486402281a430d49b1a459196c00"></a>TAG_COMPOUND&#160;</td><td class="fielddoc"><p>Key-value pairs of tags. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0ad9e8097789fbbb0864f7ab962adc407d"></a>TAG_INT_ARRAY&#160;</td><td class="fielddoc"><p>Array of signed integer/int32_t[] tags. </p>
</td></tr>
<tr><td class="fieldname"><a id="af736ee28323266257ce0e5d56e2669e0a11f095453a5c229c777a885eb4d11f88"></a>TAG_LONG_ARRAY&#160;</td><td class="fielddoc"><p>Array of signed long integer/int64_t[] tags. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a2d90369d511b77a9b30f137cc9f34eda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d90369d511b77a9b30f137cc9f34eda">&#9670;&nbsp;</a></span>decode() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::decode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171ec">PreserveMode</a>&#160;</td>
          <td class="paramname"><em>preservemode</em> = <code>PreserveMode::tag</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Decode <code>input</code> binary-string to NBT <a class="el" href="classnbt_1_1_tag.html">Tag</a>. This library accepts NBT tag not begin with TAG_COMPOUND. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>Uncompressed NBT data binary-string to be decoded. </td></tr>
    <tr><td class="paramname">preservemode</td><td>How this function returns the values? (note that this value is string name of the enum value).  thrown if <code>input</code> is not a valid NBT data. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a46b11750c993e65b05001687ca8a7941"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46b11750c993e65b05001687ca8a7941">&#9670;&nbsp;</a></span>decode() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::decode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#aaaadd16998c778e2f199982f78a7cdfc">inputReader</a>&#160;</td>
          <td class="paramname"><em>reader</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#a092035b9920a343f97622e7a5a6171ec">PreserveMode</a>&#160;</td>
          <td class="paramname"><em>preservemode</em> = <code>PreserveMode::tag</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Decode an NBT data based on specified <code>reader</code> function. This library accepts NBT tag not begin with TAG_COMPOUND. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reader</td><td>Reader function. </td></tr>
    <tr><td class="paramname">preservemode</td><td>How this function returns the values? (note that this value is string name of the enum value).  thrown if <code>input</code> is not a valid NBT data or there's error in <code>reader</code> function. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2d0688c4f34e81f1a92e7f34606812b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d0688c4f34e81f1a92e7f34606812b4">&#9670;&nbsp;</a></span>newByte()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newByte </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a190f7f37f387f7215246055e5fbd656f">TAG_BYTE</a> NBT tag value. </p>

</div>
</div>
<a id="a632231a596f2297ab97a6d945683d41f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a632231a596f2297ab97a6d945683d41f">&#9670;&nbsp;</a></span>newByteArray()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newByteArray </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0af86224107e7c82312447a2c56fb05a6f">TAG_BYTE_ARRAY</a> NBT tag value. </p><dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">error</td><td>thrown if the array table contains non-number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a48aa5ecaea6688662019242d156aa4c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48aa5ecaea6688662019242d156aa4c9">&#9670;&nbsp;</a></span>newCompound()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newCompound </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0ac3b2486402281a430d49b1a459196c00">TAG_COMPOUND</a> NBT tag. </p><div class="fragment"><div class="line">-- Example of creating TAG_COMPOUND</div><div class="line">local nbt = require(&quot;nbt&quot;)</div><div class="line">tagCompound = nbt.newCompound({</div><div class="line">    hello = nbt.newString(&quot;World&quot;),</div><div class="line">    integerValue = nbt.newInt(12345),</div><div class="line">    doublePrecision = nbt.newDouble(math.pi),</div><div class="line">    list = nbt.newList(nbt.TAG_STRING, {&quot;bandori&quot;, &quot;bang&quot;, &quot;dream&quot;, &quot;livesim2&quot;, &quot;over the rainbow&quot;})</div><div class="line">})</div></div><!-- fragment --> <dl class="section warning"><dt>Warning</dt><dd>This function does not support automatic <a class="el" href="classnbt_1_1_tag.html">Tag</a> type conversion, so the value must be a type of <a class="el" href="classnbt_1_1_tag.html">Tag</a>. See example code above on how to create new <a class="el" href="classnbt_1_1_tag.html">Tag</a> with this type. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">error</td><td>thrown if it contains value other than <a class="el" href="classnbt_1_1_tag.html">Tag</a> type. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="adfcd33113345462b4bf460b2f036044c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adfcd33113345462b4bf460b2f036044c">&#9670;&nbsp;</a></span>newDouble()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newDouble </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#a1ec0d30c4bfec8a96b422179b9c1640c">number</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0af3cb3a0b381059ae88ecc0139dd986d5">TAG_DOUBLE</a> NBT tag value. </p>

</div>
</div>
<a id="aa3da631c31cbc6f5e23ce07a4cf7a692"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3da631c31cbc6f5e23ce07a4cf7a692">&#9670;&nbsp;</a></span>newFloat()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newFloat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#a1ec0d30c4bfec8a96b422179b9c1640c">number</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a81548f1cdd75d6a5500533ac73773018">TAG_FLOAT</a> NBT tag value. </p>

</div>
</div>
<a id="a8a9207104ad78f5e0e6913af5ba7ace8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a9207104ad78f5e0e6913af5ba7ace8">&#9670;&nbsp;</a></span>newInt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a367f9352d0b2e8621bda49127318e086">TAG_INT</a> NBT tag value. </p>

</div>
</div>
<a id="acd46fcce4a1db7e58f45c8d1ea9575c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd46fcce4a1db7e58f45c8d1ea9575c1">&#9670;&nbsp;</a></span>newIntArray()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newIntArray </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0ad9e8097789fbbb0864f7ab962adc407d">TAG_INT_ARRAY</a> NBT tag value. </p><dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">error</td><td>thrown if the array table contains non-number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1ff381e9fea7390b315e64fd5e677690"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ff381e9fea7390b315e64fd5e677690">&#9670;&nbsp;</a></span>newList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newList </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0">TagType</a>&#160;</td>
          <td class="paramname"><em>typeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0af97f4039d10b5baa39af2a666ff05486">TAG_LIST</a> NBT tag with specified <code>typeID</code>. </p><dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">error</td><td>thrown if non-matching <a class="el" href="classnbt_1_1_tag.html">Tag</a> object is passed. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abf036100365ed424f8e699ca2e96a008"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf036100365ed424f8e699ca2e96a008">&#9670;&nbsp;</a></span>newLong()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newLong </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0ada95f5b19bd2e9e17160cc9a1477b7d8">TAG_LONG</a> NBT tag value. </p><dl class="section warning"><dt>Warning</dt><dd>Due to pure Lua can't handle anything 2^53, only use this if really necessary. </dd></dl>

</div>
</div>
<a id="aa3f9a30f4384530243111d880604eb46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3f9a30f4384530243111d880604eb46">&#9670;&nbsp;</a></span>newLongArray()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newLongArray </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#a2f6f02afeb450fede6255f602157bb2a">table</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a11f095453a5c229c777a885eb4d11f88">TAG_LONG_ARRAY</a> NBT tag value. </p><dl class="section warning"><dt>Warning</dt><dd>Due to pure Lua can't handle anything 2^53, only use this if really necessary. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">error</td><td>thrown if the array table contains non-number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac1b3c26b692676be463163af7d14a12d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1b3c26b692676be463163af7d14a12d">&#9670;&nbsp;</a></span>newShort()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newShort </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ac96039b5f6f53c3e5f64be0807d772f2">integer</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0abe4ee5e13fc7f3f35ba3c2d544b9fa8d">TAG_SHORT</a> NBT tag value. </p>

</div>
</div>
<a id="a9129cea2c8fd16c1818cd4a22d5e4df6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9129cea2c8fd16c1818cd4a22d5e4df6">&#9670;&nbsp;</a></span>newString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnbt_1_1_tag.html">Tag</a> nbt::newString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacenbt.html#ace7731cf44f1f0d059794e786f2d42b8">string</a>&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create new <a class="el" href="namespacenbt.html#af736ee28323266257ce0e5d56e2669e0a655593edca89bc6ed0a2ac5fc33c50c0">TAG_STRING</a> NBT tag value. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
